package cn.lesaas.esb.poc.test;

import org.apache.camel.builder.RouteBuilder;

public class XpathRoute extends RouteBuilder {
	@Override
	public void configure() throws Exception {
		from("direct:xpath")
		.setHeader("startTimestamp", xpath("/reqt/header/startTimestamp/text()"))
		.setHeader("duration", xpath("/reqt/header/duration").resultType(int.class))
		.to("mock:result");
	}

}
